import request from '@/utils/request'

// 获取负责人数据
export function getEmployeeSimple() {
  return request({
    url: '/sys/user/simple',
    method: 'get'
  })
}
// 新增部门接口
export function addDepartments(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 根据ID查询部门详情
export function getDepartDetail(id) {
  return request({
    url: '/company/department/' + id,
    method: 'GET'

  })
}
// 修改部门详情
export function updateDepartments(data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}

